Let us deal with the simplest case first.
Suppose you wish to generate a reference, mark the appropriate word
and save the indicated text for printing in the back of the paper.
The command used to accomplish this feat is
ref.
The syntax of this command is
ref{text}
where the indicated text is the material which you wish to have
appear in the back of the paper.
For example if you type
ref{ This is the place you want to put a
reference }; then PHYZZX will, as you see, generate a
reference number, attach it to the word immediately preceding
the macro command and store the text in a file on your A disk.
Each time you invoke the macro
ref it increases the
reference number by 1 and adds the next reference to the file on
your A disk.
Anytime that you wish to print this file all you have to do is
type the command
refout.
Normally, you would wait to do this until the end of the document;
however, to see what happens we will now type
refout to
obtain
=0
Note, that the simple command
ref is like the command
eq:
it automatically numbers the reference and stores it away,
however it does not allow you the freedom of naming it.
It is like
eq in another way;
like
eq it automatically
gives the reference the name
?.
This allows you to refer to the last reference until
you do something to redefine
?.
Clearly, this command has only
limited flexibility and one needs a more sophisticated command
to allow you to individually name each reference.
The command which does this is
Ref; the syntax for this
command is
Ref
name{text of reference}
where name is the name you wish to assign to this
reference and text is the material which you wish to have
appear on the page of references at the back of the document.
To use the command
Ref you simply begin typing the
appropriate reference immediately following the word to which
the reference number is to be attached.
For example if you type
… this is the result obtained by Banks and
Kaplunovsky
Ref
junkname{T.˜ Banks
and V.˜ Kaplunovsky }
you get
… this is the result
obtained by Banks and KaplnovskyT. Banks
and V. Kaplunovsky
Note that the word Kaplunovsky has a superscripted version of the
current reference number attached to it and the text has disappeared.
The text is stored away in a file called
referenc.texauxil.
This file is automatically stored on your A disk
when the TEX file is processed.
Once again, to print this stuff we type
refout
If we wish to refer to this reference we need only type
Ref.
junkname to obtain Ref..
Note that when you type
junkname you do not automatically
get a space after the number generated, even if you typed one.
This is because TEX eats a space which appears after a control
sequence.
If you want a space to follow the number you should type
junkname
; i.e.,
junkname followed
by a
(space), which is TEX's control sequence for an
extra space.